package com.buyingtickets.entity;

import java.time.Period;

/**
 * @author Hexz
 * @date 2021/6/23 23:10
 */
public class Seat {
    private int seatId;//座位ID
    private TrainNumber trainNumber;//车次对象
    private InitialSeat initialSeat;//原始座位对象
    private Site site;//站点对象：
    private int sellOut;//是否售罄

    @Override
    public String toString() {
        return "Seat{" +
                "seatId=" + seatId +
                ", trainNumber=" + trainNumber +
                ", initialSeat=" + initialSeat +
                ", site=" + site +
                ", sellOut=" + sellOut +
                '}';
    }

    public int getSeatId() {
        return seatId;
    }

    public void setSeatId(int seatId) {
        this.seatId = seatId;
    }

    public TrainNumber getTrainNumber() {
        return trainNumber;
    }

    public void setTrainNumber(TrainNumber trainNumber) {
        this.trainNumber = trainNumber;
    }

    public InitialSeat getInitialSeat() {
        return initialSeat;
    }

    public void setInitialSeat(InitialSeat initialSeat) {
        this.initialSeat = initialSeat;
    }

    public Site getSite() {
        return site;
    }

    public void setSite(Site site) {
        this.site = site;
    }

    public int getSellOut() {
        return sellOut;
    }

    public void setSellOut(int sellOut) {
        this.sellOut = sellOut;
    }
}
